package com.xizhao.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@EnableDiscoveryClient
// 作为调用方开启 如果是被调用 可以不用
//@EnableFeignClients(basePackages = {"com.xizhao.feign"})
@SpringBootApplication(scanBasePackages = "com.xizhao")
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class BootDemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(BootDemoApplication.class, args);
		System.out.println("You can visit http://localhost:80/boot-demo/doc");
	}

}
